function homeDir() {
	send('HomeDir','listInfo');
}

function systemInfo() {
	send('SystemInfo','listInfo');
}

function javaProps() {
	send('JavaProps','listInfo');
}

function vmInfo() {
	send('VMInfo','listInfo');
}

function invokeShell() {
  var cmd = $("cmd")
  var cmdString = cmd.value;
  send("Shell",'listInfo', { cmd: cmdString });
  $('title').innerHTML = cmdString;
  cmd.value = "";
  var div = document.createElement("div");
  div.style.display = "none";
  $('history').appendChild(div);
  div.innerHTML = "<code>" + cmdString + "</code><br/>";
  Effect.SlideDown(div, { duration:.5 });
}

function send(cmd,callback,args) {
  $("title").innerHTML = cmd;
  sendMsg(cmd,callback,args);
}

function listInfo(res) {
  var props = res.split(/\|/);
  var resP = $("res");
  resP.innerHTML = "";
  for (var i=0; i<props.length; i++) {
    resP.innerHTML += props[i] + "\n";
  }
}
